package com.lagou.service;

import com.lagou.domain.Course;
import com.lagou.domain.CourseVo;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface CourseService {

    /**
     * 多条件查询课程
     */
    public List<Course> findCourseByCondition(CourseVo courseVo);

    /**
     * 存储课程和讲师信息
     * @param courseVo
     */
    public void saveCourseOrTeacher(CourseVo courseVo) throws InvocationTargetException, IllegalAccessException;

    /**
     * 根据id查询课程信息并回显
     */
    public CourseVo findCourseById(Integer id);

    /**
     * 更新课程或讲师信息
     * @param courseVo
     */
    public void updateCourseOrTeacher(CourseVo courseVo) throws InvocationTargetException, IllegalAccessException;

    /**
     * 更新课程状态
     * @param courseId
     * @param status
     */
    public void updateCourseStatus(int courseId, int status);
}
